<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>质检总表增加</title>
<script src="../../layui/layui.js"></script>
<link rel="stylesheet" type="text/css"
	href="../../layui/css/layui.css" media="all">
<style type="text/css">
	body{
		margin:20px 0px;
	}
</style>
</head>
<body>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend>增加用户</legend>
	</fieldset>

	<form class="layui-form" action="../../qtSumModel/addQtSumModel.action" method="post">
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">采购订单ID</label>
				<div class="layui-input-inline">
					<input type="text" name="poId" id="poId" required
						lay-verify="required" placeholder="采购订单ID" autocomplete="off" maxlength="10"
						class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">质检总未通过数</label>
				<div class="layui-input-inline">
					<input type="number" name="sumNopass" id="sumNopass" required
						lay-verify="required" placeholder="质检总未通过数" maxlength="9"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">质检总数</label>
				<div class="layui-input-inline">
					<input type="number" name="sumSumnum" id="sumSumnum" required
						lay-verify="required" maxlength="11" placeholder="质检总数"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			
			<!-- <div class="layui-inline">
				<label class="layui-form-label">质检总通过率</label>
				<div class="layui-input-inline">
					<input type="number" name="sumRate" id="sumRate" required
						lay-verify="required" placeholder="质检总通过率" maxlength="18"
						autocomplete="off" class="layui-input">
				</div>
			</div> -->
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">质检总备注</label>
				<div class="layui-input-inline">
					<input type="text" name="sumRemark" id="sumRemark" required
						lay-verify="required" placeholder="质检总备注" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">是否有效</label>
				<div class="layui-input-inline">
					<input type="text" name="isva" id="isva" required
						lay-verify="required" placeholder="是否有效" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">质检总报表人</label>
				<div class="layui-input-inline">
					<input type="text" name="sumPerson" id="sumPerson" required
						lay-verify="required" placeholder="质检总报表人" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">排序</label>
				<div class="layui-input-inline">
					<input type="number" name="sort" id="sort" required
						lay-verify="required" placeholder="排序" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			<!--  
			<div class="layui-inline">
				<label class="layui-form-label">质检总报表时间</label>
				<div class="layui-input-inline">
					<input type="date" name="sumTime" id="sumTime" required
						lay-verify="required" placeholder="质检总报表时间" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			-->
			<div class="layui-inline">
				<label class="layui-form-label">分公司ID</label>
				<div class="layui-input-inline">
					<input type="text" name="filId" id="filId" required
						lay-verify="required" placeholder="分公司ID" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="submit" class="layui-btn" lay-submit=""
					lay-filter="Add" value="立即增加">
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
	
	<script type="text/javascript">
		
		layui.use('form', function(){
			  var form = layui.form
			  ,layer = layui.layer
			  ,$ = layui.$;
			  
			
			  form.on('submit(Add)',function(){
				  parent.location.reload(); // 父页面刷新
			  });
			  
			  form.on('checkbox(filter)', function(data){
					var checked = $("input:checkbox:checked");
					var val = "";
					for(var i=0;i<checked.length;i++){
						val += checked[i].value+",";
					}
					$("#r").val(val);
				}); 
			});
	</script>
</body>
</html>